package com.ieng.kican.modules.system.rest;

import com.ieng.kican.api.model.User;
import com.ieng.kican.common.http.MR;
import com.ieng.kican.modules.system.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/system/user")
public class UserController {
    @Autowired
    private UserService userService;

    @RequestMapping("/list")
    public MR<?> list() {
        return null;
    }

    @GetMapping
    public MR<?> one(@RequestParam("id") Long id) {
        return null;
    }

    @PostMapping
    public MR<?> add(@Validated @RequestBody User user){
        return null;
    }

    @PutMapping
    public MR<?> update(@RequestBody User user){
        return null;
    }

}
